home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 2000 July / macformat-092.iso / Dreamweaver 3 / Configuration / Commands / ConfirmDS.js < prev    next >
Encoding:
Text File  |  1999-12-01  |  625 b   |  20 lines

  1. // Copyright 1999 Macromedia, Inc. All rights reserved.
  2.  
  3. function render() {
  4.   var btnList="", i;
  5.   document.msg.innerHTML = arguments[0]; //Insert the question
  6.   if (arguments.length > 1) {
  7.     for (i=1; i<arguments.length; i++)
  8.       btnList += "<input type='button' value='"+arguments[i]+"' onClick='setResult(\""+arguments[i]+"\")'>";
  9.     document.btns.innerHTML = btnList;
  10.   }
  11. }
  12.  
  13. function setResult(result) {
  14.   if (typeof MMNotes != 'undefined') { // Set values off of MMNotes object if it exists.
  15.     MMNotes.Confirm_RESULT = result;
  16.     MMNotes.Confirm_DONOTSHOW = document.cbDoNotAsk.checked;
  17.   }
  18.   window.close();
  19. }
  20.